using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace Marble_Blast_Mods_Creator
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            if (args.Length == 0)
            {
                try
                {
                    Application.Run(new Form1(true,false));
                }
                catch (System.IO.DriveNotFoundException exec)
                {

                    MessageBox.Show("direxec");


                }
                catch(Exception exece)
                {
                    MBMC.Dialogs.SendFeedback sf = new MBMC.Dialogs.SendFeedback(exece.ToString());
                    sf.ShowDialog();
                }
            }
            else
            {
                if (args[0].ToString() == "-install")
                {
                    Application.Run(new Settings());
                }
                if (args[0].ToString() == "-nocheckforupdate")
                {
                    Application.Run(new Form1(false,false));
                }
                if (args[0].ToString() == "-frommbmm")
                {
                    Application.Run(new Form1(false, true));
                }
                else
                {
                    MessageBox.Show("This argument is not implented, please read arguments help! If you want to run Marble Blast Mods Creator, please start application without the arguments. ", "Marble Blast Mods Creator", MessageBoxButtons.OK, MessageBoxIcon.Error);

                }
            }
        }
    }
}